<% content_for :toolbar do %>
<div class="toolbar_buttons">
  <%= render 'alchemy/admin/partials/site_select' %>
  <%= render 'alchemy/admin/partials/language_tree_select' %>
  <%= render Alchemy::Admin::ToolbarButton.new(
    icon: "file-add",
    url: alchemy.new_admin_page_path(language: @current_language, layoutpage: true),
    hotkey: 'alt+n',
    dialog_options: {
      title: Alchemy.t('Add global page'),
      size: '340x170',
      overflow: true
    },
    label: Alchemy.t('Add global page'),
    tooltip_placement: "top-start",
    if_permitted_to: [:create, Alchemy::Page]
  ) %>
  <%= render "alchemy/admin/clipboard/button", remarkable_type: "pages" %>
</div>
<% end %>

<h4 id="sitemap_heading">
  <span class="page_name"><%= Alchemy::Page.human_attribute_name(:name) %></span>
</h4>

<ul class="list" id="layoutpages">
  <%= render partial: "layoutpage", collection: @layout_pages %>
</ul>
